<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="stylesheet" type="text/css" href="css/default.css" />
		<link rel="stylesheet" type="text/css" href="css/component.css" />
		<script src="js/modernizr.custom.js"></script>
	</head>
	<body class="cbp-spmenu-push">

		<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-right" id="cbp-spmenu-s2">
			<h3>Menu</h3>
			<a href="http://www.htmleaf.com/" target="_blank">Celery seakale</a>
			<a href="http://www.htmleaf.com/" target="_blank">Dulse daikon</a>
			<a href="http://www.htmleaf.com/" target="_blank">Zucchini garlic</a>
			<a href="http://www.htmleaf.com/" target="_blank">Catsear azuki bean</a>
			<a href="http://www.htmleaf.com/" target="_blank">Dandelion bunya</a>
			<a href="http://www.htmleaf.com/" target="_blank">Rutabaga</a>
		</nav>

		<div class="container">
			<div class="main">
				<section>
					<button id="showRight">Show/Hide Right Slide Menu</button>
				</section>
			</div>
		</div>
		<script src="js/classie.js"></script>
		<script>
			var menuRight = document.getElementById( 'cbp-spmenu-s2' ),
          showRight = document.getElementById( 'showRight' ),
          showRightPush = document.getElementById( 'showRightPush' ),
          body = document.body;

      showRight.onclick = function() {
        classie.toggle( this, 'active' );
        classie.toggle( menuRight, 'cbp-spmenu-open' );
        disableOther( 'showRight' );
      };

			function disableOther( button ) {
				if( button !== 'showRight' ) {
					classie.toggle( showRight, 'disabled' );
				}
			}
		</script>
	</body>
</html>
